/* 登录和注册页面样式 */

.auth-container {
    min-height: calc(100vh - 64px - 400px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xxl) var(--container-padding);
    background-color: var(--background-secondary);
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background-color: var(--background-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

.auth-header {
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-lg);
    text-align: center;
}

.auth-header h1 {
    margin-bottom: var(--spacing-xs);
    color: var(--text-color);
}

.auth-header p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    padding: var(--spacing-md);
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    position: relative;
}

.auth-tab:hover {
    color: var(--primary-color);
}

.auth-tab.active {
    color: var(--primary-color);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.auth-content {
    padding: var(--spacing-xl);
}

.auth-tab-content {
    display: none;
}

.auth-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.auth-form .form-group:last-of-type {
    margin-bottom: var(--spacing-lg);
}

.sms-code-group {
    display: flex;
    gap: var(--spacing-md);
}

.sms-code-group input {
    flex: 1;
}

.sms-code-group button {
    white-space: nowrap;
    min-width: 120px;
}

.btn-block {
    width: 100%;
    margin-bottom: var(--spacing-md);
}

.auth-links {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.auth-links a {
    color: var(--primary-color);
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

.wechat-login {
    text-align: center;
    padding: var(--spacing-md) 0;
}

.qrcode-container {
    width: 200px;
    height: 200px;
    margin: 0 auto var(--spacing-lg);
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
}

.qrcode-container img {
    width: 100%;
    height: 100%;
}

.wechat-login p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.qrcode-tip {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.agreement-check {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.agreement-check input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

.agreement-check label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    font-weight: normal;
}

.agreement-check a {
    color: var(--primary-color);
}

.agreement-check a:hover {
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .auth-container {
        padding: var(--spacing-xl) var(--container-padding);
    }
}

@media (max-width: 480px) {
    .auth-card {
        box-shadow: none;
        border-radius: 0;
    }
    
    .auth-content {
        padding: var(--spacing-lg);
    }
    
    .sms-code-group {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .sms-code-group button {
        width: 100%;
    }
}